package com.hr.String不可变性;

/**
 * @program: leetcode
 * @description: String 垃圾回收
 * -Xms15m -Xmx15m -XX:+PringGCDetails -XX:+PrintStringTableStatistics
 * @author: HuRan QQ1345122890
 * @create: 2021-03-02 21:12
 */
public class StringTest06 {
    public static void main(String[] args) {
        for (int i = 0; i < 100; i++) {
            String.valueOf(i).intern();
        }
    }
}